import React, { Component } from 'react'
import '../assets/style/otext.less'

//gwx  
//gwx   gwx//gwx  
//gwx   gwx//gwx  
//gwx   gwx
export default class Otext extends Component {
    constructor(props) {
        super(props)
    }
    okclick(e) {
        console.log(e)
    }
    render() {
        return (
            <div>{
                this.props.describe != '' ?
                    <div className="divtitle" style={this.props.offside}><span>{this.props.describe}</span>: <span>{this.props.data}</span></div>
                    : <span className="title" style={this.props.offside} onClick={() => this.okclick()} >{this.props.data}</span>
            }

            </div>
        )
    }
}
